import store from '@/store'
const permissionMixin = {
  methods: {
    checkPermission(key) {
      return store.state.user?.userInfo?.roles?.points?.includes(key)
    }
  }
}
export default {
  install(Vue) {
    Vue.mixin(permissionMixin)
  }
}
